package com.wlts.wzy.KSUserModule.service;

import com.wlts.wzy.configBean.shiro.SysAuthorizationInfo;
import com.wlts.wzy.expand.MyLambdaQueryWrapper;
import com.wlts.wzy.expand.MyPage;
import com.wlts.wzy.KSUserModule.entity.KsStoreUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;

/**
 * <p>
 * 快手授权信息 服务类
 * </p>
 *
 * @author zhiyong
 * @since 2021-02-01
 */
public interface IKsStoreUserService extends IService<KsStoreUser> {

    KsStoreUser getById(Serializable id, boolean isUseCache);

    MyPage<KsStoreUser> page(KsStoreUser ksStoreUser, Integer page, Integer size, boolean isUseCache);

    MyPage<KsStoreUser> page(KsStoreUser ksStoreUser, Integer page, Integer size, boolean isUseCache, String dimension);

    MyPage<KsStoreUser> page(MyLambdaQueryWrapper<KsStoreUser> wrapper, Integer page, Integer size, boolean isUseCache);

    MyPage<KsStoreUser> page(MyLambdaQueryWrapper<KsStoreUser> wrapper, Integer page, Integer size, boolean isUseCache, String dimension);

    KsStoreUser selectOnes(MyLambdaQueryWrapper<KsStoreUser> wrapper, boolean isUseCache);

    void delAllPageCache();

    void delDimensionPageCache(String dimension);

    SysAuthorizationInfo getAuthor(String name);
}
